import request from '@/utils/request'

// 查询按温室气体种类划分的电力排放列表
export function listElectricitySplit(query) {
  return request({
    url: '/result/electricitySplit/list',
    method: 'get',
    params: query
  })
}

// 查询按温室气体种类划分的电力排放详细
export function getElectricitySplit(id) {
  return request({
    url: '/result/electricitySplit/' + id,
    method: 'get'
  })
}

// 新增按温室气体种类划分的电力排放
export function addElectricitySplit(data) {
  return request({
    url: '/result/electricitySplit',
    method: 'post',
    data: data
  })
}

// 修改按温室气体种类划分的电力排放
export function updateElectricitySplit(data) {
  return request({
    url: '/result/electricitySplit',
    method: 'put',
    data: data
  })
}

// 删除按温室气体种类划分的电力排放
export function delElectricitySplit(id) {
  return request({
    url: '/result/electricitySplit/' + id,
    method: 'delete'
  })
}

// 导出按温室气体种类划分的电力排放
export function exportElectricitySplit(query) {
  return request({
    url: '/result/electricitySplit/export',
    method: 'get',
    params: query
  })
}